package com.design.pattern.command;

/**
 * 命令的执行者
 */
public class Receiver {
    private String name;

    public Receiver setName(String name) {
        this.name = name;
        return this;
    }

    public void exec(String content){
        System.out.println(name+"执行了命令,结果是:"+content);
    }

}
